﻿#pragma warning(disable: 4996)
#pragma warning(disable: 6031)

#include <stdio.h>

void solve(int a) {
	int d = a % 16;
	int c = a / 16;
	printf("%d\n", c * 10 + d);
}

int main()
{
	freopen("D:/Develop/GitRepos/MOOC/浙江大学/数据结构/201906/DataStructure/M2019秋C入门和进阶练习集/7-15.txt", "r", stdin);
	int a;
	scanf("%d", &a);
	solve(a);
	return 0;
}